import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取下拉列表的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getDropdownProps<C>() {
  return { ...getEditorProps<C>(), value: [String, Number] };
}

/**
 * 获取表格下拉列表的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridDropdownProps<C>() {
  return { ...getDropdownProps<C>(), ...getGridEditorCommonProps() };
}
